/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.model.impl;

import com.liferay.portal.kernel.util.StringBundler;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.model.CacheModel;

import com.portlet.model.nlhassp;

import java.io.Serializable;

/**
 * The cache model class for representing nlhassp in entity cache.
 *
 * @author Thi
 * @see nlhassp
 * @generated
 */
public class nlhasspCacheModel implements CacheModel<nlhassp>, Serializable {
	@Override
	public String toString() {
		StringBundler sb = new StringBundler(13);

		sb.append("{maNLSP=");
		sb.append(maNLSP);
		sb.append(", maNguyenLieu=");
		sb.append(maNguyenLieu);
		sb.append(", maQC=");
		sb.append(maQC);
		sb.append(", quyCach=");
		sb.append(quyCach);
		sb.append(", tieuChiKiemTra=");
		sb.append(tieuChiKiemTra);
		sb.append(", cachKiemTra=");
		sb.append(cachKiemTra);
		sb.append("}");

		return sb.toString();
	}

	public nlhassp toEntityModel() {
		nlhasspImpl nlhasspImpl = new nlhasspImpl();

		nlhasspImpl.setMaNLSP(maNLSP);

		if (maNguyenLieu == null) {
			nlhasspImpl.setMaNguyenLieu(StringPool.BLANK);
		}
		else {
			nlhasspImpl.setMaNguyenLieu(maNguyenLieu);
		}

		if (maQC == null) {
			nlhasspImpl.setMaQC(StringPool.BLANK);
		}
		else {
			nlhasspImpl.setMaQC(maQC);
		}

		if (quyCach == null) {
			nlhasspImpl.setQuyCach(StringPool.BLANK);
		}
		else {
			nlhasspImpl.setQuyCach(quyCach);
		}

		if (tieuChiKiemTra == null) {
			nlhasspImpl.setTieuChiKiemTra(StringPool.BLANK);
		}
		else {
			nlhasspImpl.setTieuChiKiemTra(tieuChiKiemTra);
		}

		if (cachKiemTra == null) {
			nlhasspImpl.setCachKiemTra(StringPool.BLANK);
		}
		else {
			nlhasspImpl.setCachKiemTra(cachKiemTra);
		}

		nlhasspImpl.resetOriginalValues();

		return nlhasspImpl;
	}

	public long maNLSP;
	public String maNguyenLieu;
	public String maQC;
	public String quyCach;
	public String tieuChiKiemTra;
	public String cachKiemTra;
}